<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output
    method="xml"
    version="1.0"
    encoding="US-ASCII"
    indent="yes" />

    <xsl:param name="host" />
    <xsl:param name="root-path" />

    <xsl:template match="text()" />

    <xsl:template match="/page/menu">
        <menu>
            <xsl:apply-templates />
        </menu>
    </xsl:template>

    <xsl:template match="/page/menu//item">
        <item href="{$root-path}{@href}" title="{@title}">
            <xsl:apply-templates />
        </item>
    </xsl:template>

    <xsl:template match="/">
        <page>
            <xsl:apply-templates select="/page/menu" />
            <content>
                <title>Sitemap</title>
                <block>
                    <html>
                        <ul>
                            <li><a href="{$root-path}/">Home</a></li>
                            <li><a href="{$root-path}/file/">File Storage</a>
                                <ul>
                                    <li><a href="http://www.file2upload.net/">File2Upload</a></li>
                                </ul>
                            </li>
                            <li><a href="{$root-path}/software/">Software</a>
                                <ul>
                                    <li><a href="http://www.spyaway2007.com/index.php">Spy Away 2007</a></li>
                                    <li><a href="http://www.perfectcleaner2007.com/">Perfect Cleaner</a></li>
                                    <li><a href="http://www.safe-strip.com/">Safe Strip</a></li>
                                </ul>
                            </li>
                            <li><a href="{$root-path}/quest/">FAQ</a></li>
                            <li><a href="{$root-path}/contacts/">Contacts</a></li>
                            <li>Sitemap</li>
                        </ul>
                    </html>
                </block>
            </content>
        </page>
    </xsl:template>

</xsl:stylesheet>